import { mapGetters } from "vuex";

export default {
    data() {
        return {
            sportId:1,
        }
    },
    computed: {
        ...mapGetters({
        //     api_model_name:"get_selectedApiModel",
           selectedSportTypeInfo:'get_selectedSportTypeInfo',
           
        }),
    },
    watch: {
        router_cache: {
          handler: function() {
            this.create_cur_sportId();
          },
          deep: true
        }
      },
    methods: {

        create_cur_sportId(){
            let id= this.get_router_cache_value_by_path('selectedSportTypeInfo.id')
          this.sportId= id|| 1
        }
    },
   


}